<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增服务对象信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-recipient-add">
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">活动唯一标识：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="activityId" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <input name="activityId" th:value="${activityId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">中文名：</label>
                <div class="col-sm-8">
                    <input name="recipientCnname" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">英文名：</label>
                <div class="col-sm-8">
                    <input name="recipientEnname" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8">
                    <select class="select" name="recipientSex" th:with="type=${@dict.getType('recipient_sex')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">国籍：</label>
                <div class="col-sm-8">
                    <select class="select" name="recipientCountry">
                        <option th:each="area : ${areas}" th:text="${area.areasName}"
                                th:value="${area.areasId}"></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">国籍名称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="countryName" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">护照号：</label>
                <div class="col-sm-8">
                    <input name="passportNum" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生日：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="recipientBirthday" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否是领队：</label>
                <div class="col-sm-8">
                    <select class="select" name="isBandleader" th:with="type=${@dict.getType('is_bandleader')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <select class="select" name="recipientState" th:with="type=${@dict.getType('recipient_state')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">备注：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <textarea name="memo" class="form-control"></textarea>-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "vtsp/recipient"
        $("#form-recipient-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-recipient-add').serialize());
            }
        }

        $("input[name='recipientBirthday']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>
